/**
 * Huisou.com Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */

package com.lyqg.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @description
 * 
 * @author chenzehe
 * @email hljuczh@163.com
 * @create 2012-7-26 下午10:19:46
 */
@Entity
@Table(name = "tbl_jy")
public class Jy {
	@Id
	@Column(name = "id")
	@GeneratedValue
	private Integer id;

	@Column(name = "user_id")
	private Integer userId;

	@Column(name = "user_name")
	private String userName;

	@Column(name = "title")
	private String title;

	@Column(name = "title2")
	private String title2;

	@Column(name = "summary")
	private String summary;

	@Column(name = "content")
	private String content;

	@Column(name = "img")
	private String img;

	@Column(name = "category_parent_ename")
	private String categoryParentEname;

	@Column(name = "category_parent_name")
	private String categoryParentName;

	@Column(name = "area_ename")
	private String areaEname;

	@Column(name = "area_name")
	private String areaName;

	@Column(name = "issue_time")
	private Date issueTime;

	@Column(name = "modify_time")
	private Date modifyTime;

	@Column(name = "comment_count")
	private Integer commentCount;

	@Column(name = "zhi_count")
	private Integer zhiCount;

	@Column(name = "collection_count")
	private Integer collectionCount;

	@Column(name = "status")
	private Integer status;

	@Transient
	private Jy preJy;

	@Transient
	private Jy nextJy;

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle2() {
		return title2;
	}

	public void setTitle2(String title2) {
		this.title2 = title2;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getImg() {
		return this.img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getCategoryParentEname() {
		return categoryParentEname;
	}

	public void setCategoryParentEname(String categoryParentEname) {
		this.categoryParentEname = categoryParentEname;
	}

	public String getCategoryParentName() {
		return categoryParentName;
	}

	public void setCategoryParentName(String categoryParentName) {
		this.categoryParentName = categoryParentName;
	}

	public String getAreaEname() {
		return areaEname;
	}

	public void setAreaEname(String areaEname) {
		this.areaEname = areaEname;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public Date getIssueTime() {
		return issueTime;
	}

	public void setIssueTime(Date issueTime) {
		this.issueTime = issueTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Integer getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(Integer commentCount) {
		this.commentCount = commentCount;
	}

	public Integer getZhiCount() {
		return zhiCount;
	}

	public void setZhiCount(Integer zhiCount) {
		this.zhiCount = zhiCount;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getCollectionCount() {
		return collectionCount;
	}

	public void setCollectionCount(Integer collectionCount) {
		this.collectionCount = collectionCount;
	}

	public Jy getPreJy() {
		return preJy;
	}

	public void setPreJy(Jy preJy) {
		this.preJy = preJy;
	}

	public Jy getNextJy() {
		return nextJy;
	}

	public void setNextJy(Jy nextJy) {
		this.nextJy = nextJy;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public static enum Area {
		HTJY {
			@Override
			public String getArea() {
				return "htjy";
			}
		},
		GNJY {
			@Override
			public String getArea() {
				return "gljy";
			}
		};
		public abstract String getArea();
	}
}
